package ModelLayer;


public class Loan
{
    private long id;
    private int borrowDate;
    private String period;
    private Copy copy;
   
    /* Constructor for class Loan */
    public Loan(Copy copy, long id, int borrowDate, String period)
    { 
        this.copy = copy;
        this.id = id;
        this.borrowDate = borrowDate;
        this.period = period;
    }

    /* Print method for all information */
    public void printLoanInfo()
    {
        System.out.println("Id " + id);
        System.out.println("Borrow date " + borrowDate);
        System.out.println("Period " + period);
    }
    
    /* Get methods */
    public Copy getCopy()
    {
        return copy;
    }
    
    public long getId()
    {
        return id;
    }
    
    public int getBorrowDate()
    {
        return borrowDate;
    }
    
    public String getPeriod()
    {
        return period;
    }
    
    /* Set methods */
    public void setBorrowDate(int borrowDate)
    {
        this.borrowDate = borrowDate;
    }
    
     public void setId(long id)
    {
        this.id = id;
    }
    
     public void setPeriod(String period)
    {
        this.period = period;
    }
  
}
